package com.wkbb.common.enums;

public enum PayMannerEnum {

    /**
     * 按学期
     */
    PAYTERM(1,"按学期"),
    /**
     * 按学年
     */
    PAYSTUDYYEAR(2,"按学年"),
    /**
     * 按月
     */
    PAYMONTY(3,"按月"),
    /**
     * 按年
     */
    PAYYEAR(4,"按年"),
    /**
     * 一次性
     */
    PAYSINGLE(5,"一次性");



    private PayMannerEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return this.value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (PayMannerEnum payMannerEnum : PayMannerEnum.values()) {
            if (payMannerEnum.getValue().intValue()==value) {
                return payMannerEnum.getDesc();
            }
        }
        return null;
    }
}
